package com.ruoyi.resume.domain.model.resumeProfile;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.YearMonth;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "教育背景实体类")
public class EducationBackground {

    @ApiModelProperty(value = "学校名称", example = "清华大学")
    private String schoolName;

    @ApiModelProperty(value = "专业名称", example = "计算机科学与技术")
    private String majorName;

    @JsonFormat(pattern = "yyyy-MM")
    @ApiModelProperty(value = "起始时间", example = "2018-09")
    private YearMonth startTime;

    @JsonFormat(pattern = "yyyy-MM")
    @ApiModelProperty(value = "终止时间（如果是9999-01，则表示至今）", example = "2022-06")
    private YearMonth endTime;

    @ApiModelProperty(value = "学历", example = "本科")
    private String degree;

    @ApiModelProperty(value = "相关课程列表", example = "[\"数据结构\", \"操作系统\", \"计算机网络\"]")
    private String relatedCourses;
}